package com.gaohe.post.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gaohe.common.core.annotation.Excel;
import com.gaohe.common.core.web.domain.BaseEntity;

/**
 * 圈子帖子对象 fm_post
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public class FmPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子id */
    private Long postId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 圈子id */
    @Excel(name = "圈子id")
    private Long communityId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long postCategorizeId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 配图 */
    @Excel(name = "配图")
    private String image;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 是否置顶(0不置顶/1置顶) */
    @Excel(name = "是否置顶(0不置顶/1置顶)")
    private Long isTop;

    /** 置顶结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "置顶结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date topEndTime;

    /** 校区id */
    @Excel(name = "校区id")
    private Long schoolId;

    /** 校区名 */
    @Excel(name = "校区名")
    private String schoolName;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long num;

    /** 是否删除 */
    private Long delFlag;

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    public void setPostCategorizeId(Long postCategorizeId) 
    {
        this.postCategorizeId = postCategorizeId;
    }

    public Long getPostCategorizeId() 
    {
        return postCategorizeId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setIsTop(Long isTop) 
    {
        this.isTop = isTop;
    }

    public Long getIsTop() 
    {
        return isTop;
    }

    public void setTopEndTime(Date topEndTime) 
    {
        this.topEndTime = topEndTime;
    }

    public Date getTopEndTime() 
    {
        return topEndTime;
    }

    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    public void setSchoolName(String schoolName) 
    {
        this.schoolName = schoolName;
    }

    public String getSchoolName() 
    {
        return schoolName;
    }

    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("communityId", getCommunityId())
            .append("postCategorizeId", getPostCategorizeId())
            .append("content", getContent())
            .append("image", getImage())
            .append("publishTime", getPublishTime())
            .append("isTop", getIsTop())
            .append("topEndTime", getTopEndTime())
            .append("schoolId", getSchoolId())
            .append("schoolName", getSchoolName())
            .append("num", getNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
